package com.agnes.okhttp.lib;

import okhttp3.MediaType;

public class NetConst {
    //提交普通文本
    public static MediaType MEDIA_TYPE_PLAIN = MediaType.parse("text/plain;charset=utf-8");
    //提交json字符串
    public static MediaType MEDIA_TYPE_JSON = MediaType.parse("application/json;charset=utf-8");


    public final static String[] CODE_KEY = {"code", "result", "Code", "status", "statusCode"};
    public final static String[] MSG_KEY = {"message", "msg", "Msg", "ErrorMessage", "error"};


    public static final String CODE = "code";
    public static final String MESSAGE = "message";
    public static final String DATA = "data";

    // 客户端自定义错误码，不要和服务端重复
    public static final int CODE_EMPTY = -10;
    public static final int CODE_PARSE_NULL = -11;

    public static final int SUCCESS_CODE = 0;

    public static final int FLAG_JO = 1;
    public static final int FLAG_JA = 2;


}
